home *** CD-ROM | disk | FTP | other *** search
- /*
- NOTES: `_clipStringValue:' could be implemented as a function which would
- make it possible to use this clipping feature in other custom
- cell classes (e.g. MyClippingBrowserCell) as well. What do you
- think ?
-
- char* clipString(string, delimiters, clipper, font, fromRight, maxWidth)
- const char *string; //The string to clip
- const char *delimiters;//Delimiters to clip by
- const char *clipper; //String that subst. invis. part
- id font; //Font the string is displayed with
- BOOL fromRight; //Clipping from left or right ?
- float maxWidth; //The max width of the object the
- //string will be displayed in e.g.
- //an adjusted Cell width
-
- Or maybe better to include it in a category of ActionCell thus
- applying clipping option to all ActionCell subclasses (it has to be
- an ActionCell category beacause it uses `controlView' to
- determine the size of the view the cell is displayed in). But we
- need the clipper and delimiter arguments then, don't we.
- So, it could look like:
-
-
- @interface ActionCell(ClippingText)
-
- - clipStringValue:(const char *) theString
- fromRight:(BOOL)yesno
- usingDelimiters:(const char*) delimiters
- clipperString:(const char*) clipperString
-
- @end;
-
- Which one do you think is better?
-
- */
-